package main

import (
	"io/ioutil"
	"os"
	"strings"
)

func main() {
	filename := os.Args[1]
	f, _ := os.Open(filename)
	b, _ := ioutil.ReadAll(f)
	sr := string(b)
	sr = strings.Replace(sr, "\n", `\r\n`, -1)
	sr = strings.Replace(sr, "\t", `\t`, -1)
	sr = strings.Replace(sr, `"`, `\"`, -1)
	f.Close()
	f, _ = os.OpenFile(filename, os.O_CREATE|os.O_WRONLY, 0666)
	f.WriteString(sr)
}
